package com.tanhua.domain.mongo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "tanhua_friends")
public class Friend implements Serializable { // 好友表

    private static final long serialVersionUID = 4208721013943200005L;
    private ObjectId id;
    private Long created; //时间
    private Long userId; //用户id
    private Long friendId; //好友id

}